home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 40
/
Amiga Format CD40 (1999-05-11)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-06].iso
/
-seriously_amiga-
/
misc
/
pdflib
/
pdfpython_wrap.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-03-24
|
162KB
|
4,921 lines
/*
* FILE : pdfpython_wrap.c
*
* This file was automatically generated by :
* Simplified Wrapper and Interface Generator (SWIG)
* Version 1.1 (Patch 5)
*
* Portions Copyright (c) 1995-1998
* The University of Utah and The Regents of the University of California.
* Permission is granted to distribute this file in any manner provided
* this notice remains intact.
*
* Do not make changes to this file--changes will be lost!
*
*/
#define SWIGCODE
/* Implementation : PYTHON */
#define SWIGPYTHON
#include <string.h>
#include <stdlib.h>
/***********************************************************************
* $Header:$
* swig_lib/python/python.cfg
*
* This file contains coded needed to add variable linking to the
* Python interpreter. C variables are added as a new kind of Python
* datatype.
*
* Also contains supporting code for building python under Windows
* and things like that.
*
* $Log:$
************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
#include "Python.h"
#ifdef __cplusplus
}
#endif
/* Definitions for Windows/Unix exporting */
#if defined(__WIN32__)
# if defined(_MSC_VER)
# define SWIGEXPORT(a,b) __declspec(dllexport) a b
# else
# if defined(__BORLANDC__)
# define SWIGEXPORT(a,b) a _export b
# else
# define SWIGEXPORT(a,b) a b
# endif
# endif
#else
# define SWIGEXPORT(a,b) a b
#endif
#ifdef SWIG_GLOBAL
#ifdef __cplusplus
#define SWIGSTATIC extern "C"
#else
#define SWIGSTATIC
#endif
#endif
#ifndef SWIGSTATIC
#define SWIGSTATIC static
#endif
typedef struct {
char *name;
PyObject *(*get_attr)(void);
int (*set_attr)(PyObject *);
} swig_globalvar;
typedef struct swig_varlinkobject {
PyObject_HEAD
swig_globalvar **vars;
int nvars;
int maxvars;
} swig_varlinkobject;
/* ----------------------------------------------------------------------
swig_varlink_repr()
Function for python repr method
---------------------------------------------------------------------- */
static PyObject *
swig_varlink_repr(swig_varlinkobject *v)
{
v = v;
return PyString_FromString("<Global variables>");
}
/* ---------------------------------------------------------------------
swig_varlink_print()
Print out all of the global variable names
--------------------------------------------------------------------- */
static int
swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags)
{
int i = 0;
flags = flags;
fprintf(fp,"Global variables { ");
while (v->vars[i]) {
fprintf(fp,"%s", v->vars[i]->name);
i++;
if (v->vars[i]) fprintf(fp,", ");
}
fprintf(fp," }\n");
return 0;
}
/* --------------------------------------------------------------------
swig_varlink_getattr
This function gets the value of a variable and returns it as a
PyObject. In our case, we'll be looking at the datatype and
converting into a number or string
-------------------------------------------------------------------- */
static PyObject *
swig_varlink_getattr(swig_varlinkobject *v, char *n)
{
int i = 0;
char temp[128];
while (v->vars[i]) {
if (strcmp(v->vars[i]->name,n) == 0) {
return (*v->vars[i]->get_attr)();
}
i++;
}
sprintf(temp,"C global variable %s not found.", n);
PyErr_SetString(PyExc_NameError,temp);
return NULL;
}
/* -------------------------------------------------------------------
swig_varlink_setattr()
This function sets the value of a variable.
------------------------------------------------------------------- */
static int
swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p)
{
char temp[128];
int i = 0;
while (v->vars[i]) {
if (strcmp(v->vars[i]->name,n) == 0) {
return (*v->vars[i]->set_attr)(p);
}
i++;
}
sprintf(temp,"C global variable %s not found.", n);
PyErr_SetString(PyExc_NameError,temp);
return 1;
}
statichere PyTypeObject varlinktype = {
/* PyObject_HEAD_INIT(&PyType_Type) Note : This doesn't work on some machines */
PyObject_HEAD_INIT(0)
0,
"varlink", /* Type name */
sizeof(swig_varlinkobject), /* Basic size */
0, /* Itemsize */
0, /* Deallocator */
(printfunc) swig_varlink_print, /* Print */
(getattrfunc) swig_varlink_getattr, /* get attr */
(setattrfunc) swig_varlink_setattr, /* Set attr */
0, /* tp_compare */
(reprfunc) swig_varlink_repr, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_mapping*/
0, /* tp_hash */
};
/* Create a variable linking object for use later */
SWIGSTATIC PyObject *
SWIG_newvarlink(void)
{
swig_varlinkobject *result = 0;
result = PyMem_NEW(swig_varlinkobject,1);
varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
result->ob_type = &varlinktype;
/* _Py_NewReference(result); Does not seem to be necessary */
result->nvars = 0;
result->maxvars = 64;
result->vars = (swig_globalvar **) malloc(64*sizeof(swig_globalvar *));
result->vars[0] = 0;
result->ob_refcnt = 0;
Py_XINCREF((PyObject *) result);
return ((PyObject*) result);
}
SWIGSTATIC void
SWIG_addvarlink(PyObject *p, char *name,
PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p))
{
swig_varlinkobject *v;
v= (swig_varlinkobject *) p;
if (v->nvars >= v->maxvars -1) {
v->maxvars = 2*v->maxvars;
v->vars = (swig_globalvar **) realloc(v->vars,v->maxvars*sizeof(swig_globalvar *));
if (v->vars == NULL) {
fprintf(stderr,"SWIG : Fatal error in initializing Python module.\n");
exit(1);
}
}
v->vars[v->nvars] = (swig_globalvar *) malloc(sizeof(swig_globalvar));
v->vars[v->nvars]->name = (char *) malloc(strlen(name)+1);
strcpy(v->vars[v->nvars]->name,name);
v->vars[v->nvars]->get_attr = get_attr;
v->vars[v->nvars]->set_attr = set_attr;
v->nvars++;
v->vars[v->nvars] = 0;
}
/*****************************************************************************
* $Header:$
*
* swigptr.swg
*
* This file contains supporting code for the SWIG run-time type checking
* mechanism. The following functions are available :
*
* SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *));
*
* Registers a new type-mapping with the type-checker. origtype is the
* original datatype and newtype is an equivalent type. cast is optional
* pointer to a function to cast pointer values between types (this
* is typically used to cast pointers from derived classes to base classes in C++)
*
* SWIG_MakePtr(char *buffer, void *ptr, char *typestring);
*
* Makes a pointer string from a pointer and typestring. The result is returned
* in buffer which is assumed to hold enough space for the result.
*
* char * SWIG_GetPtr(char *buffer, void **ptr, char *type)
*
* Gets a pointer value from a string. If there is a type-mismatch, returns
* a character string to the received type. On success, returns NULL.
*
*
* You can remap these functions by making a file called "swigptr.swg" in
* your the same directory as the interface file you are wrapping.
*
* These functions are normally declared static, but this file can be
* can be used in a multi-module environment by redefining the symbol
* SWIGSTATIC.
*****************************************************************************/
#include <stdlib.h>
#ifdef SWIG_GLOBAL
#ifdef __cplusplus
#define SWIGSTATIC extern "C"
#else
#define SWIGSTATIC
#endif
#endif
#ifndef SWIGSTATIC
#define SWIGSTATIC static
#endif
/* SWIG pointer structure */
typedef struct SwigPtrType {
char *name; /* Datatype name */
int len; /* Length (used for optimization) */
void *(*cast)(void *); /* Pointer casting function */
struct SwigPtrType *next; /* Linked list pointer */
} SwigPtrType;
/* Pointer cache structure */
typedef struct {
int stat; /* Status (valid) bit */
SwigPtrType *tp; /* Pointer to type structure */
char name[256]; /* Given datatype name */
char mapped[256]; /* Equivalent name */
} SwigCacheType;
/* Some variables */
static int SwigPtrMax = 64; /* Max entries that can be currently held */
/* This value may be adjusted dynamically */
static int SwigPtrN = 0; /* Current number of entries */
static int SwigPtrSort = 0; /* Status flag indicating sort */
static int SwigStart[256]; /* Starting positions of types */
/* Pointer table */
static SwigPtrType *SwigPtrTable = 0; /* Table containing pointer equivalences */
/* Cached values */
#define SWIG_CACHESIZE 8
#define SWIG_CACHEMASK 0x7
static SwigCacheType SwigCache[SWIG_CACHESIZE];
static int SwigCacheIndex = 0;
static int SwigLastCache = 0;
/* Sort comparison function */
static int swigsort(const void *data1, const void *data2) {
SwigPtrType *d1 = (SwigPtrType *) data1;
SwigPtrType *d2 = (SwigPtrType *) data2;
return strcmp(d1->name,d2->name);
}
/* Binary Search function */
static int swigcmp(const void *key, const void *data) {
char *k = (char *) key;
SwigPtrType *d = (SwigPtrType *) data;
return strncmp(k,d->name,d->len);
}
/* Register a new datatype with the type-checker */
SWIGSTATIC
void SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *)) {
int i;
SwigPtrType *t = 0,*t1;
/* Allocate the pointer table if necessary */
if (!SwigPtrTable) {
SwigPtrTable = (SwigPtrType *) malloc(SwigPtrMax*sizeof(SwigPtrType));
SwigPtrN = 0;
}
/* Grow the table */
if (SwigPtrN >= SwigPtrMax) {
SwigPtrMax = 2*SwigPtrMax;
SwigPtrTable = (SwigPtrType *) realloc((char *) SwigPtrTable,SwigPtrMax*sizeof(SwigPtrType));
}
for (i = 0; i < SwigPtrN; i++)
if (strcmp(SwigPtrTable[i].name,origtype) == 0) {
t = &SwigPtrTable[i];
break;
}
if (!t) {
t = &SwigPtrTable[SwigPtrN];
t->name = origtype;
t->len = strlen(t->name);
t->cast = 0;
t->next = 0;
SwigPtrN++;
}
/* Check for existing entry */
while (t->next) {
if ((strcmp(t->name,newtype) == 0)) {
if (cast) t->cast = cast;
return;
}
t = t->next;
}
/* Now place entry (in sorted order) */
t1 = (SwigPtrType *) malloc(sizeof(SwigPtrType));
t1->name = newtype;
t1->len = strlen(t1->name);
t1->cast = cast;
t1->next = 0;
t->next = t1;
SwigPtrSort = 0;
}
/* Make a pointer value string */
SWIGSTATIC
void SWIG_MakePtr(char *_c, const void *_ptr, char *type) {
static char _hex[16] =
{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'a', 'b', 'c', 'd', 'e', 'f'};
unsigned long _p, _s;
char _result[20], *_r; /* Note : a 64-bit hex number = 16 digits */
_r = _result;
_p = (unsigned long) _ptr;
if (_p > 0) {
while (_p > 0) {
_s = _p & 0xf;
*(_r++) = _hex[_s];
_p = _p >> 4;
}
*_r = '_';
while (_r >= _result)
*(_c++) = *(_r--);
} else {
strcpy (_c, "NULL");
}
if (_ptr)
strcpy (_c, type);
}
/* Define for backwards compatibility */
#define _swig_make_hex SWIG_MakePtr
/* Function for getting a pointer value */
SWIGSTATIC
char *SWIG_GetPtr(char *_c, void **ptr, char *_t)
{
unsigned long _p;
char temp_type[256];
char *name;
int i, len;
SwigPtrType *sp,*tp;
SwigCacheType *cache;
int start, end;
_p = 0;
/* Pointer values must start with leading underscore */
if (*_c == '_') {
_c++;
/* Extract hex value from pointer */
while (*_c) {
if ((*_c >= '0') && (*_c <= '9'))
_p = (_p << 4) + (*_c - '0');
else if ((*_c >= 'a') && (*_c <= 'f'))
_p = (_p << 4) + ((*_c - 'a') + 10);
else
break;
_c++;
}
if (_t) {
if (strcmp(_t,_c)) {
if (!SwigPtrSort) {
qsort((void *) SwigPtrTable, SwigPtrN, sizeof(SwigPtrType), swigsort);
for (i = 0; i < 256; i++) {
SwigStart[i] = SwigPtrN;
}
for (i = SwigPtrN-1; i >= 0; i--) {
SwigStart[(int) (SwigPtrTable[i].name[1])] = i;
}
for (i = 255; i >= 1; i--) {
if (SwigStart[i-1] > SwigStart[i])
SwigStart[i-1] = SwigStart[i];
}
SwigPtrSort = 1;
for (i = 0; i < SWIG_CACHESIZE; i++)
SwigCache[i].stat = 0;
}
/* First check cache for matches. Uses last cache value as starting point */
cache = &SwigCache[SwigLastCache];
for (i = 0; i < SWIG_CACHESIZE; i++) {
if (cache->stat) {
if (strcmp(_t,cache->name) == 0) {
if (strcmp(_c,cache->mapped) == 0) {
cache->stat++;
*ptr = (void *) _p;
if (cache->tp->cast) *ptr = (*(cache->tp->cast))(*ptr);
return (char *) 0;
}
}
}
SwigLastCache = (SwigLastCache+1) & SWIG_CACHEMASK;
if (!SwigLastCache) cache = SwigCache;
else cache++;
}
/* We have a type mismatch. Will have to look through our type
mapping table to figure out whether or not we can accept this datatype */
start = SwigStart[(int) _t[1]];
end = SwigStart[(int) _t[1]+1];
sp = &SwigPtrTable[start];
while (start < end) {
if (swigcmp(_t,sp) == 0) break;
sp++;
start++;
}
if (start >= end) sp = 0;
/* Try to find a match for this */
if (sp) {
while (swigcmp(_t,sp) == 0) {
name = sp->name;
len = sp->len;
tp = sp->next;
/* Try to find entry for our given datatype */
while(tp) {
if (tp->len >= 255) {
return _c;
}
strcpy(temp_type,tp->name);
strncat(temp_type,_t+len,255-tp->len);
if (strcmp(_c,temp_type) == 0) {
strcpy(SwigCache[SwigCacheIndex].mapped,_c);
strcpy(SwigCache[SwigCacheIndex].name,_t);
SwigCache[SwigCacheIndex].stat = 1;
SwigCache[SwigCacheIndex].tp = tp;
SwigCacheIndex = SwigCacheIndex & SWIG_CACHEMASK;
/* Get pointer value */
*ptr = (void *) _p;
if (tp->cast) *ptr = (*(tp->cast))(*ptr);
return (char *) 0;
}
tp = tp->next;
}
sp++;
/* Hmmm. Didn't find it this time */
}
}
/* Didn't find any sort of match for this data.
Get the pointer value and return the received type */
*ptr = (void *) _p;
return _c;
} else {
/* Found a match on the first try. Return pointer value */
*ptr = (void *) _p;
return (char *) 0;
}
} else {
/* No type specified. Good luck */
*ptr = (void *) _p;
return (char *) 0;
}
} else {
if (strcmp (_c, "NULL") == 0) {
*ptr = (void *) 0;
return (char *) 0;
}
*ptr = (void *) 0;
return _c;
}
}
/* Compatibility mode */
#define _swig_get_hex SWIG_GetPtr
#define SWIG_init initpdflib
#define SWIG_name "pdflib"
#include "pdf.h"
extern PDF_pagesize a0;
extern PDF_pagesize a1;
extern PDF_pagesize a2;
extern PDF_pagesize a3;
extern PDF_pagesize a4;
extern PDF_pagesize a5;
extern PDF_pagesize a6;
extern PDF_pagesize b5;
extern PDF_pagesize letter;
extern PDF_pagesize legal;
extern PDF_pagesize ledger;
extern PDF_pagesize p11x17;
static int _wrap_a0_set(PyObject *val) {
char * tval;
PDF_pagesize * temp;
tval = (char *) PyString_AsString(val);
if (PyErr_Occurred()) {
PyErr_SetString(PyExc_TypeError,"C variable 'a0'(PDF_pagesize *)");
return 1;
}
if (tval) {
if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in value of a0. Expected _PDF_pagesize_p.");
return 1;
}
}
a0 = *temp;
return 0;
}
static PyObject *_wrap_a0_get() {
PyObject * pyobj;
char ptemp[128];
SWIG_MakePtr(ptemp,(char *) &a0,"_PDF_pagesize_p");
pyobj = PyString_FromString(ptemp);
return pyobj;
}
static int _wrap_a1_set(PyObject *val) {
char * tval;
PDF_pagesize * temp;
tval = (char *) PyString_AsString(val);
if (PyErr_Occurred()) {
PyErr_SetString(PyExc_TypeError,"C variable 'a1'(PDF_pagesize *)");
return 1;
}
if (tval) {
if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in value of a1. Expected _PDF_pagesize_p.");
return 1;
}
}
a1 = *temp;
return 0;
}
static PyObject *_wrap_a1_get() {
PyObject * pyobj;
char ptemp[128];
SWIG_MakePtr(ptemp,(char *) &a1,"_PDF_pagesize_p");
pyobj = PyString_FromString(ptemp);
return pyobj;
}
static int _wrap_a2_set(PyObject *val) {
char * tval;
PDF_pagesize * temp;
tval = (char *) PyString_AsString(val);
if (PyErr_Occurred()) {
PyErr_SetString(PyExc_TypeError,"C variable 'a2'(PDF_pagesize *)");
return 1;
}
if (tval) {
if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in value of a2. Expected _PDF_pagesize_p.");
return 1;
}
}
a2 = *temp;
return 0;
}
static PyObject *_wrap_a2_get() {
PyObject * pyobj;
char ptemp[128];
SWIG_MakePtr(ptemp,(char *) &a2,"_PDF_pagesize_p");
pyobj = PyString_FromString(ptemp);
return pyobj;
}
static int _wrap_a3_set(PyObject *val) {
char * tval;
PDF_pagesize * temp;
tval = (char *) PyString_AsString(val);
if (PyErr_Occurred()) {
PyErr_SetString(PyExc_TypeError,"C variable 'a3'(PDF_pagesize *)");
return 1;
}
if (tval) {
if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in value of a3. Expected _PDF_pagesize_p.");
return 1;
}
}
a3 = *temp;
return 0;
}
static PyObject *_wrap_a3_get() {
PyObject * pyobj;
char ptemp[128];
SWIG_MakePtr(ptemp,(char *) &a3,"_PDF_pagesize_p");
pyobj = PyString_FromString(ptemp);
return pyobj;
}
static int _wrap_a4_set(PyObject *val) {
char * tval;
PDF_pagesize * temp;
tval = (char *) PyString_AsString(val);
if (PyErr_Occurred()) {
PyErr_SetString(PyExc_TypeError,"C variable 'a4'(PDF_pagesize *)");
return 1;
}
if (tval) {
if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in value of a4. Expected _PDF_pagesize_p.");
return 1;
}
}
a4 = *temp;
return 0;
}
static PyObject *_wrap_a4_get() {
PyObject * pyobj;
char ptemp[128];
SWIG_MakePtr(ptemp,(char *) &a4,"_PDF_pagesize_p");
pyobj = PyString_FromString(ptemp);
return pyobj;
}
static int _wrap_a5_set(PyObject *val) {
char * tval;
PDF_pagesize * temp;
tval = (char *) PyString_AsString(val);
if (PyErr_Occurred()) {
PyErr_SetString(PyExc_TypeError,"C variable 'a5'(PDF_pagesize *)");
return 1;
}
if (tval) {
if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in value of a5. Expected _PDF_pagesize_p.");
return 1;
}
}
a5 = *temp;
return 0;
}
static PyObject *_wrap_a5_get() {
PyObject * pyobj;
char ptemp[128];
SWIG_MakePtr(ptemp,(char *) &a5,"_PDF_pagesize_p");
pyobj = PyString_FromString(ptemp);
return pyobj;
}
static int _wrap_a6_set(PyObject *val) {
char * tval;
PDF_pagesize * temp;
tval = (char *) PyString_AsString(val);
if (PyErr_Occurred()) {
PyErr_SetString(PyExc_TypeError,"C variable 'a6'(PDF_pagesize *)");
return 1;
}
if (tval) {
if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in value of a6. Expected _PDF_pagesize_p.");
return 1;
}
}
a6 = *temp;
return 0;
}
static PyObject *_wrap_a6_get() {
PyObject * pyobj;
char ptemp[128];
SWIG_MakePtr(ptemp,(char *) &a6,"_PDF_pagesize_p");
pyobj = PyString_FromString(ptemp);
return pyobj;
}
static int _wrap_b5_set(PyObject *val) {
char * tval;
PDF_pagesize * temp;
tval = (char *) PyString_AsString(val);
if (PyErr_Occurred()) {
PyErr_SetString(PyExc_TypeError,"C variable 'b5'(PDF_pagesize *)");
return 1;
}
if (tval) {
if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in value of b5. Expected _PDF_pagesize_p.");
return 1;
}
}
b5 = *temp;
return 0;
}
static PyObject *_wrap_b5_get() {
PyObject * pyobj;
char ptemp[128];
SWIG_MakePtr(ptemp,(char *) &b5,"_PDF_pagesize_p");
pyobj = PyString_FromString(ptemp);
return pyobj;
}
static int _wrap_letter_set(PyObject *val) {
char * tval;
PDF_pagesize * temp;
tval = (char *) PyString_AsString(val);
if (PyErr_Occurred()) {
PyErr_SetString(PyExc_TypeError,"C variable 'letter'(PDF_pagesize *)");
return 1;
}
if (tval) {
if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in value of letter. Expected _PDF_pagesize_p.");
return 1;
}
}
letter = *temp;
return 0;
}
static PyObject *_wrap_letter_get() {
PyObject * pyobj;
char ptemp[128];
SWIG_MakePtr(ptemp,(char *) &letter,"_PDF_pagesize_p");
pyobj = PyString_FromString(ptemp);
return pyobj;
}
static int _wrap_legal_set(PyObject *val) {
char * tval;
PDF_pagesize * temp;
tval = (char *) PyString_AsString(val);
if (PyErr_Occurred()) {
PyErr_SetString(PyExc_TypeError,"C variable 'legal'(PDF_pagesize *)");
return 1;
}
if (tval) {
if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in value of legal. Expected _PDF_pagesize_p.");
return 1;
}
}
legal = *temp;
return 0;
}
static PyObject *_wrap_legal_get() {
PyObject * pyobj;
char ptemp[128];
SWIG_MakePtr(ptemp,(char *) &legal,"_PDF_pagesize_p");
pyobj = PyString_FromString(ptemp);
return pyobj;
}
static int _wrap_ledger_set(PyObject *val) {
char * tval;
PDF_pagesize * temp;
tval = (char *) PyString_AsString(val);
if (PyErr_Occurred()) {
PyErr_SetString(PyExc_TypeError,"C variable 'ledger'(PDF_pagesize *)");
return 1;
}
if (tval) {
if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in value of ledger. Expected _PDF_pagesize_p.");
return 1;
}
}
ledger = *temp;
return 0;
}
static PyObject *_wrap_ledger_get() {
PyObject * pyobj;
char ptemp[128];
SWIG_MakePtr(ptemp,(char *) &ledger,"_PDF_pagesize_p");
pyobj = PyString_FromString(ptemp);
return pyobj;
}
static int _wrap_p11x17_set(PyObject *val) {
char * tval;
PDF_pagesize * temp;
tval = (char *) PyString_AsString(val);
if (PyErr_Occurred()) {
PyErr_SetString(PyExc_TypeError,"C variable 'p11x17'(PDF_pagesize *)");
return 1;
}
if (tval) {
if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in value of p11x17. Expected _PDF_pagesize_p.");
return 1;
}
}
p11x17 = *temp;
return 0;
}
static PyObject *_wrap_p11x17_get() {
PyObject * pyobj;
char ptemp[128];
SWIG_MakePtr(ptemp,(char *) &p11x17,"_PDF_pagesize_p");
pyobj = PyString_FromString(ptemp);
return pyobj;
}
static PyObject *_wrap_PDF_get_info(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF_info * _result;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,":PDF_get_info"))
return NULL;
_result = (PDF_info *)PDF_get_info();
SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_info_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
static PyObject *_wrap_PDF_open(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _result;
FILE * _arg0;
PDF_info * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_open",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_FILE_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_open. Expected _FILE_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_open. Expected _PDF_info_p.");
return NULL;
}
}
_result = (PDF *)PDF_open(_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
static PyObject *_wrap_PDF_close(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_close",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_close. Expected _PDF_p.");
return NULL;
}
}
PDF_close(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_begin_page(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
float _arg2;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sff:PDF_begin_page",&_argc0,&_arg1,&_arg2))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_begin_page. Expected _PDF_p.");
return NULL;
}
}
PDF_begin_page(_arg0,_arg1,_arg2);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_end_page(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_end_page",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_end_page. Expected _PDF_p.");
return NULL;
}
}
PDF_end_page(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_set_transition(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
PDF_transition _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_set_transition",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_transition. Expected _PDF_p.");
return NULL;
}
}
PDF_set_transition(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_set_duration(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_set_duration",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_duration. Expected _PDF_p.");
return NULL;
}
}
PDF_set_duration(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_malloc(PyObject *self, PyObject *args) {
PyObject * _resultobj;
void * _result;
size_t * _arg0;
char * _arg1;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_malloc",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_size_t_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_malloc. Expected _size_t_p.");
return NULL;
}
}
_result = (void *)PDF_malloc(*_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_void_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
static PyObject *_wrap_PDF_free(PyObject *self, PyObject *args) {
PyObject * _resultobj;
void * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_free",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_free. Expected _void_p.");
return NULL;
}
}
PDF_free(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_show(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_show",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_show. Expected _PDF_p.");
return NULL;
}
}
PDF_show(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_show_xy(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _arg1;
float _arg2;
float _arg3;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ssff:PDF_show_xy",&_argc0,&_arg1,&_arg2,&_arg3))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_show_xy. Expected _PDF_p.");
return NULL;
}
}
PDF_show_xy(_arg0,_arg1,_arg2,_arg3);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_set_font(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _arg1;
float _arg2;
PDF_encoding _arg3;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ssfi:PDF_set_font",&_argc0,&_arg1,&_arg2,&_arg3))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_font. Expected _PDF_p.");
return NULL;
}
}
PDF_set_font(_arg0,_arg1,_arg2,_arg3);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_set_leading(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_set_leading",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_leading. Expected _PDF_p.");
return NULL;
}
}
PDF_set_leading(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_set_text_rise(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_set_text_rise",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_text_rise. Expected _PDF_p.");
return NULL;
}
}
PDF_set_text_rise(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_set_horiz_scaling(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_set_horiz_scaling",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_horiz_scaling. Expected _PDF_p.");
return NULL;
}
}
PDF_set_horiz_scaling(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_set_text_rendering(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
byte _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sb:PDF_set_text_rendering",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_text_rendering. Expected _PDF_p.");
return NULL;
}
}
PDF_set_text_rendering(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_set_text_matrix(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
PDF_matrix * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_set_text_matrix",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_text_matrix. Expected _PDF_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_matrix_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_set_text_matrix. Expected _PDF_matrix_p.");
return NULL;
}
}
PDF_set_text_matrix(_arg0,*_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_set_text_pos(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
float _arg2;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sff:PDF_set_text_pos",&_argc0,&_arg1,&_arg2))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_text_pos. Expected _PDF_p.");
return NULL;
}
}
PDF_set_text_pos(_arg0,_arg1,_arg2);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_set_char_spacing(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_set_char_spacing",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_char_spacing. Expected _PDF_p.");
return NULL;
}
}
PDF_set_char_spacing(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_set_word_spacing(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_set_word_spacing",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_word_spacing. Expected _PDF_p.");
return NULL;
}
}
PDF_set_word_spacing(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_continue_text(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_continue_text",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_continue_text. Expected _PDF_p.");
return NULL;
}
}
PDF_continue_text(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_save(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_save",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_save. Expected _PDF_p.");
return NULL;
}
}
PDF_save(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_restore(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_restore",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_restore. Expected _PDF_p.");
return NULL;
}
}
PDF_restore(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_translate(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
float _arg2;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sff:PDF_translate",&_argc0,&_arg1,&_arg2))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_translate. Expected _PDF_p.");
return NULL;
}
}
PDF_translate(_arg0,_arg1,_arg2);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_scale(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
float _arg2;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sff:PDF_scale",&_argc0,&_arg1,&_arg2))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_scale. Expected _PDF_p.");
return NULL;
}
}
PDF_scale(_arg0,_arg1,_arg2);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_rotate(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_rotate",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_rotate. Expected _PDF_p.");
return NULL;
}
}
PDF_rotate(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_setdash(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
float _arg2;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sff:PDF_setdash",&_argc0,&_arg1,&_arg2))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setdash. Expected _PDF_p.");
return NULL;
}
}
PDF_setdash(_arg0,_arg1,_arg2);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_setpolydash(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float * _arg1;
int _arg2;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ssi:PDF_setpolydash",&_argc0,&_argc1,&_arg2))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setpolydash. Expected _PDF_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_float_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_setpolydash. Expected _float_p.");
return NULL;
}
}
PDF_setpolydash(_arg0,_arg1,_arg2);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_setflat(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_setflat",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setflat. Expected _PDF_p.");
return NULL;
}
}
PDF_setflat(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_setlinejoin(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
byte _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sb:PDF_setlinejoin",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setlinejoin. Expected _PDF_p.");
return NULL;
}
}
PDF_setlinejoin(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_setlinecap(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
byte _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sb:PDF_setlinecap",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setlinecap. Expected _PDF_p.");
return NULL;
}
}
PDF_setlinecap(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_setmiterlimit(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_setmiterlimit",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setmiterlimit. Expected _PDF_p.");
return NULL;
}
}
PDF_setmiterlimit(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_setlinewidth(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_setlinewidth",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setlinewidth. Expected _PDF_p.");
return NULL;
}
}
PDF_setlinewidth(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_setgray_fill(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_setgray_fill",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setgray_fill. Expected _PDF_p.");
return NULL;
}
}
PDF_setgray_fill(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_setgray_stroke(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_setgray_stroke",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setgray_stroke. Expected _PDF_p.");
return NULL;
}
}
PDF_setgray_stroke(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_setgray(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_setgray",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setgray. Expected _PDF_p.");
return NULL;
}
}
PDF_setgray(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_setrgbcolor_fill(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
float _arg2;
float _arg3;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sfff:PDF_setrgbcolor_fill",&_argc0,&_arg1,&_arg2,&_arg3))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setrgbcolor_fill. Expected _PDF_p.");
return NULL;
}
}
PDF_setrgbcolor_fill(_arg0,_arg1,_arg2,_arg3);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_setrgbcolor_stroke(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
float _arg2;
float _arg3;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sfff:PDF_setrgbcolor_stroke",&_argc0,&_arg1,&_arg2,&_arg3))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setrgbcolor_stroke. Expected _PDF_p.");
return NULL;
}
}
PDF_setrgbcolor_stroke(_arg0,_arg1,_arg2,_arg3);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_setrgbcolor(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
float _arg2;
float _arg3;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sfff:PDF_setrgbcolor",&_argc0,&_arg1,&_arg2,&_arg3))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setrgbcolor. Expected _PDF_p.");
return NULL;
}
}
PDF_setrgbcolor(_arg0,_arg1,_arg2,_arg3);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_moveto(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
float _arg2;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sff:PDF_moveto",&_argc0,&_arg1,&_arg2))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_moveto. Expected _PDF_p.");
return NULL;
}
}
PDF_moveto(_arg0,_arg1,_arg2);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_lineto(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
float _arg2;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sff:PDF_lineto",&_argc0,&_arg1,&_arg2))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_lineto. Expected _PDF_p.");
return NULL;
}
}
PDF_lineto(_arg0,_arg1,_arg2);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_curveto(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
float _arg2;
float _arg3;
float _arg4;
float _arg5;
float _arg6;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sffffff:PDF_curveto",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_curveto. Expected _PDF_p.");
return NULL;
}
}
PDF_curveto(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_circle(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
float _arg2;
float _arg3;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sfff:PDF_circle",&_argc0,&_arg1,&_arg2,&_arg3))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_circle. Expected _PDF_p.");
return NULL;
}
}
PDF_circle(_arg0,_arg1,_arg2,_arg3);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_arc(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
float _arg2;
float _arg3;
float _arg4;
float _arg5;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sfffff:PDF_arc",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_arc. Expected _PDF_p.");
return NULL;
}
}
PDF_arc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_rect(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
float _arg1;
float _arg2;
float _arg3;
float _arg4;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sffff:PDF_rect",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_rect. Expected _PDF_p.");
return NULL;
}
}
PDF_rect(_arg0,_arg1,_arg2,_arg3,_arg4);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_closepath(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_closepath",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_closepath. Expected _PDF_p.");
return NULL;
}
}
PDF_closepath(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_stroke(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_stroke",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_stroke. Expected _PDF_p.");
return NULL;
}
}
PDF_stroke(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_closepath_stroke(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_closepath_stroke",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_closepath_stroke. Expected _PDF_p.");
return NULL;
}
}
PDF_closepath_stroke(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_fill(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_fill",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_fill. Expected _PDF_p.");
return NULL;
}
}
PDF_fill(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_fill_stroke(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_fill_stroke",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_fill_stroke. Expected _PDF_p.");
return NULL;
}
}
PDF_fill_stroke(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_closepath_fill_stroke(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_closepath_fill_stroke",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_closepath_fill_stroke. Expected _PDF_p.");
return NULL;
}
}
PDF_closepath_fill_stroke(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_endpath(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_endpath",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_endpath. Expected _PDF_p.");
return NULL;
}
}
PDF_endpath(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_clip(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_clip",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_clip. Expected _PDF_p.");
return NULL;
}
}
PDF_clip(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_place_image(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
PDF_image * _arg1;
float _arg2;
float _arg3;
float _arg4;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ssfff:PDF_place_image",&_argc0,&_argc1,&_arg2,&_arg3,&_arg4))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_place_image. Expected _PDF_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_place_image. Expected _PDF_image_p.");
return NULL;
}
}
PDF_place_image(_arg0,_arg1,_arg2,_arg3,_arg4);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_place_inline_image(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
PDF_image * _arg1;
float _arg2;
float _arg3;
float _arg4;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ssfff:PDF_place_inline_image",&_argc0,&_argc1,&_arg2,&_arg3,&_arg4))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_place_inline_image. Expected _PDF_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_place_inline_image. Expected _PDF_image_p.");
return NULL;
}
}
PDF_place_inline_image(_arg0,_arg1,_arg2,_arg3,_arg4);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_put_image(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
PDF_image * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_put_image",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_put_image. Expected _PDF_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_put_image. Expected _PDF_image_p.");
return NULL;
}
}
PDF_put_image(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_execute_image(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
PDF_image * _arg1;
float _arg2;
float _arg3;
float _arg4;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ssfff:PDF_execute_image",&_argc0,&_argc1,&_arg2,&_arg3,&_arg4))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_execute_image. Expected _PDF_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_execute_image. Expected _PDF_image_p.");
return NULL;
}
}
PDF_execute_image(_arg0,_arg1,_arg2,_arg3,_arg4);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_close_image(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
PDF_image * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_close_image",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_close_image. Expected _PDF_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_close_image. Expected _PDF_image_p.");
return NULL;
}
}
PDF_close_image(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_open_JPEG(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF_image * _result;
PDF * _arg0;
char * _arg1;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_open_JPEG",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_open_JPEG. Expected _PDF_p.");
return NULL;
}
}
_result = (PDF_image *)PDF_open_JPEG(_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_image_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
static PyObject *_wrap_PDF_close_JPEG(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
PDF_image * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_close_JPEG",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_close_JPEG. Expected _PDF_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_close_JPEG. Expected _PDF_image_p.");
return NULL;
}
}
PDF_close_JPEG(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_open_TIFF(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF_image * _result;
PDF * _arg0;
char * _arg1;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_open_TIFF",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_open_TIFF. Expected _PDF_p.");
return NULL;
}
}
_result = (PDF_image *)PDF_open_TIFF(_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_image_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
static PyObject *_wrap_PDF_close_TIFF(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
PDF_image * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_close_TIFF",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_close_TIFF. Expected _PDF_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_close_TIFF. Expected _PDF_image_p.");
return NULL;
}
}
PDF_close_TIFF(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_open_GIF(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF_image * _result;
PDF * _arg0;
char * _arg1;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_open_GIF",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_open_GIF. Expected _PDF_p.");
return NULL;
}
}
_result = (PDF_image *)PDF_open_GIF(_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_image_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
static PyObject *_wrap_PDF_close_GIF(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
PDF_image * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_close_GIF",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_close_GIF. Expected _PDF_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_close_GIF. Expected _PDF_image_p.");
return NULL;
}
}
PDF_close_GIF(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_data_source_from_buf(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
PDF_data_source * _arg1;
byte * _arg2;
long _arg3;
char * _argc0 = 0;
char * _argc1 = 0;
char * _argc2 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sssl:PDF_data_source_from_buf",&_argc0,&_argc1,&_argc2,&_arg3))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_from_buf. Expected _PDF_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_data_source_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_data_source_from_buf. Expected _PDF_data_source_p.");
return NULL;
}
}
if (_argc2) {
if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_byte_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of PDF_data_source_from_buf. Expected _byte_p.");
return NULL;
}
}
PDF_data_source_from_buf(_arg0,_arg1,_arg2,_arg3);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_PDF_stringwidth(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF * _arg0;
byte * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_stringwidth",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_stringwidth. Expected _PDF_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_byte_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_stringwidth. Expected _byte_p.");
return NULL;
}
}
_result = (float )PDF_stringwidth(_arg0,_arg1);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
static PyObject *_wrap_PDF_add_outline(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF * _arg0;
char * _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_add_outline",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_add_outline. Expected _PDF_p.");
return NULL;
}
}
PDF_add_outline(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyObject *_wrap_fopen(PyObject *self, PyObject *args) {
PyObject * _resultobj;
FILE * _result;
char * _arg0;
char * _arg1;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"ss:fopen",&_arg0,&_arg1))
return NULL;
_result = (FILE *)fopen(_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_FILE_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
static PyObject *_wrap_fclose(PyObject *self, PyObject *args) {
PyObject * _resultobj;
FILE * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:fclose",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_FILE_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of fclose. Expected _FILE_p.");
return NULL;
}
}
fclose(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define PDF_pagesize_width_set(_swigobj,_swigval) (_swigobj->width = _swigval,_swigval)
static PyObject *_wrap_PDF_pagesize_width_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_pagesize * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_pagesize_width_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_pagesize_width_set. Expected _PDF_pagesize_p.");
return NULL;
}
}
_result = (float )PDF_pagesize_width_set(_arg0,_arg1);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_pagesize_width_get(_swigobj) ((float ) _swigobj->width)
static PyObject *_wrap_PDF_pagesize_width_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_pagesize * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_pagesize_width_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_pagesize_width_get. Expected _PDF_pagesize_p.");
return NULL;
}
}
_result = (float )PDF_pagesize_width_get(_arg0);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_pagesize_height_set(_swigobj,_swigval) (_swigobj->height = _swigval,_swigval)
static PyObject *_wrap_PDF_pagesize_height_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_pagesize * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_pagesize_height_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_pagesize_height_set. Expected _PDF_pagesize_p.");
return NULL;
}
}
_result = (float )PDF_pagesize_height_set(_arg0,_arg1);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_pagesize_height_get(_swigobj) ((float ) _swigobj->height)
static PyObject *_wrap_PDF_pagesize_height_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_pagesize * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_pagesize_height_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_pagesize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_pagesize_height_get. Expected _PDF_pagesize_p.");
return NULL;
}
}
_result = (float )PDF_pagesize_height_get(_arg0);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_info_binary_mode_set(_swigobj,_swigval) (_swigobj->binary_mode = _swigval,_swigval)
static PyObject *_wrap_PDF_info_binary_mode_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
bool _result;
PDF_info * _arg0;
bool _arg1;
char * _argc0 = 0;
int tempbool1;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_info_binary_mode_set",&_argc0,&tempbool1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_binary_mode_set. Expected _PDF_info_p.");
return NULL;
}
}
_arg1 = (bool ) tempbool1;
_result = (bool )PDF_info_binary_mode_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_info_binary_mode_get(_swigobj) ((bool ) _swigobj->binary_mode)
static PyObject *_wrap_PDF_info_binary_mode_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
bool _result;
PDF_info * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_info_binary_mode_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_binary_mode_get. Expected _PDF_info_p.");
return NULL;
}
}
_result = (bool )PDF_info_binary_mode_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_info_required_compatibility_set(_swigobj,_swigval) (_swigobj->required_compatibility = _swigval,_swigval)
static PyObject *_wrap_PDF_info_required_compatibility_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF_compat_mode _result;
PDF_info * _arg0;
PDF_compat_mode _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_info_required_compatibility_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_required_compatibility_set. Expected _PDF_info_p.");
return NULL;
}
}
_result = (PDF_compat_mode )PDF_info_required_compatibility_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_info_required_compatibility_get(_swigobj) ((PDF_compat_mode ) _swigobj->required_compatibility)
static PyObject *_wrap_PDF_info_required_compatibility_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF_compat_mode _result;
PDF_info * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_info_required_compatibility_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_required_compatibility_get. Expected _PDF_info_p.");
return NULL;
}
}
_result = (PDF_compat_mode )PDF_info_required_compatibility_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
static char * PDF_info_Keywords_set(PDF_info *obj, char *val) {
if (obj->Keywords) free(obj->Keywords);
obj->Keywords = (char *) malloc(strlen(val)+1);
strcpy(obj->Keywords,val);
return val;
}
static PyObject *_wrap_PDF_info_Keywords_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_info_Keywords_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Keywords_set. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_Keywords_set(_arg0,_arg1);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
#define PDF_info_Keywords_get(_swigobj) ((char *) _swigobj->Keywords)
static PyObject *_wrap_PDF_info_Keywords_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_info_Keywords_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Keywords_get. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_Keywords_get(_arg0);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
static char * PDF_info_Subject_set(PDF_info *obj, char *val) {
if (obj->Subject) free(obj->Subject);
obj->Subject = (char *) malloc(strlen(val)+1);
strcpy(obj->Subject,val);
return val;
}
static PyObject *_wrap_PDF_info_Subject_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_info_Subject_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Subject_set. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_Subject_set(_arg0,_arg1);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
#define PDF_info_Subject_get(_swigobj) ((char *) _swigobj->Subject)
static PyObject *_wrap_PDF_info_Subject_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_info_Subject_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Subject_get. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_Subject_get(_arg0);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
static char * PDF_info_ModDate_set(PDF_info *obj, char *val) {
if (obj->ModDate) free(obj->ModDate);
obj->ModDate = (char *) malloc(strlen(val)+1);
strcpy(obj->ModDate,val);
return val;
}
static PyObject *_wrap_PDF_info_ModDate_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_info_ModDate_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_ModDate_set. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_ModDate_set(_arg0,_arg1);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
#define PDF_info_ModDate_get(_swigobj) ((char *) _swigobj->ModDate)
static PyObject *_wrap_PDF_info_ModDate_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_info_ModDate_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_ModDate_get. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_ModDate_get(_arg0);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
static char * PDF_info_Title_set(PDF_info *obj, char *val) {
if (obj->Title) free(obj->Title);
obj->Title = (char *) malloc(strlen(val)+1);
strcpy(obj->Title,val);
return val;
}
static PyObject *_wrap_PDF_info_Title_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_info_Title_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Title_set. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_Title_set(_arg0,_arg1);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
#define PDF_info_Title_get(_swigobj) ((char *) _swigobj->Title)
static PyObject *_wrap_PDF_info_Title_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_info_Title_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Title_get. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_Title_get(_arg0);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
static char * PDF_info_CreationDate_set(PDF_info *obj, char *val) {
if (obj->CreationDate) free(obj->CreationDate);
obj->CreationDate = (char *) malloc(strlen(val)+1);
strcpy(obj->CreationDate,val);
return val;
}
static PyObject *_wrap_PDF_info_CreationDate_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_info_CreationDate_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_CreationDate_set. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_CreationDate_set(_arg0,_arg1);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
#define PDF_info_CreationDate_get(_swigobj) ((char *) _swigobj->CreationDate)
static PyObject *_wrap_PDF_info_CreationDate_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_info_CreationDate_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_CreationDate_get. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_CreationDate_get(_arg0);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
static char * PDF_info_Creator_set(PDF_info *obj, char *val) {
if (obj->Creator) free(obj->Creator);
obj->Creator = (char *) malloc(strlen(val)+1);
strcpy(obj->Creator,val);
return val;
}
static PyObject *_wrap_PDF_info_Creator_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_info_Creator_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Creator_set. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_Creator_set(_arg0,_arg1);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
#define PDF_info_Creator_get(_swigobj) ((char *) _swigobj->Creator)
static PyObject *_wrap_PDF_info_Creator_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_info_Creator_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Creator_get. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_Creator_get(_arg0);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
static char * PDF_info_Author_set(PDF_info *obj, char *val) {
if (obj->Author) free(obj->Author);
obj->Author = (char *) malloc(strlen(val)+1);
strcpy(obj->Author,val);
return val;
}
static PyObject *_wrap_PDF_info_Author_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_info_Author_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Author_set. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_Author_set(_arg0,_arg1);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
#define PDF_info_Author_get(_swigobj) ((char *) _swigobj->Author)
static PyObject *_wrap_PDF_info_Author_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_info_Author_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Author_get. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_Author_get(_arg0);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
static char * PDF_info_fontpath_set(PDF_info *obj, char *val) {
if (obj->fontpath) free(obj->fontpath);
obj->fontpath = (char *) malloc(strlen(val)+1);
strcpy(obj->fontpath,val);
return val;
}
static PyObject *_wrap_PDF_info_fontpath_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_info_fontpath_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_fontpath_set. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_fontpath_set(_arg0,_arg1);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
#define PDF_info_fontpath_get(_swigobj) ((char *) _swigobj->fontpath)
static PyObject *_wrap_PDF_info_fontpath_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_info * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_info_fontpath_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_fontpath_get. Expected _PDF_info_p.");
return NULL;
}
}
_result = (char *)PDF_info_fontpath_get(_arg0);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
#define PDF_matrix_a_set(_swigobj,_swigval) (_swigobj->a = _swigval,_swigval)
static PyObject *_wrap_PDF_matrix_a_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_matrix * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_matrix_a_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_a_set. Expected _PDF_matrix_p.");
return NULL;
}
}
_result = (float )PDF_matrix_a_set(_arg0,_arg1);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_matrix_a_get(_swigobj) ((float ) _swigobj->a)
static PyObject *_wrap_PDF_matrix_a_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_matrix * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_matrix_a_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_a_get. Expected _PDF_matrix_p.");
return NULL;
}
}
_result = (float )PDF_matrix_a_get(_arg0);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_matrix_b_set(_swigobj,_swigval) (_swigobj->b = _swigval,_swigval)
static PyObject *_wrap_PDF_matrix_b_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_matrix * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_matrix_b_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_b_set. Expected _PDF_matrix_p.");
return NULL;
}
}
_result = (float )PDF_matrix_b_set(_arg0,_arg1);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_matrix_b_get(_swigobj) ((float ) _swigobj->b)
static PyObject *_wrap_PDF_matrix_b_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_matrix * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_matrix_b_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_b_get. Expected _PDF_matrix_p.");
return NULL;
}
}
_result = (float )PDF_matrix_b_get(_arg0);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_matrix_c_set(_swigobj,_swigval) (_swigobj->c = _swigval,_swigval)
static PyObject *_wrap_PDF_matrix_c_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_matrix * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_matrix_c_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_c_set. Expected _PDF_matrix_p.");
return NULL;
}
}
_result = (float )PDF_matrix_c_set(_arg0,_arg1);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_matrix_c_get(_swigobj) ((float ) _swigobj->c)
static PyObject *_wrap_PDF_matrix_c_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_matrix * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_matrix_c_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_c_get. Expected _PDF_matrix_p.");
return NULL;
}
}
_result = (float )PDF_matrix_c_get(_arg0);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_matrix_d_set(_swigobj,_swigval) (_swigobj->d = _swigval,_swigval)
static PyObject *_wrap_PDF_matrix_d_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_matrix * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_matrix_d_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_d_set. Expected _PDF_matrix_p.");
return NULL;
}
}
_result = (float )PDF_matrix_d_set(_arg0,_arg1);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_matrix_d_get(_swigobj) ((float ) _swigobj->d)
static PyObject *_wrap_PDF_matrix_d_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_matrix * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_matrix_d_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_d_get. Expected _PDF_matrix_p.");
return NULL;
}
}
_result = (float )PDF_matrix_d_get(_arg0);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_matrix_e_set(_swigobj,_swigval) (_swigobj->e = _swigval,_swigval)
static PyObject *_wrap_PDF_matrix_e_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_matrix * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_matrix_e_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_e_set. Expected _PDF_matrix_p.");
return NULL;
}
}
_result = (float )PDF_matrix_e_set(_arg0,_arg1);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_matrix_e_get(_swigobj) ((float ) _swigobj->e)
static PyObject *_wrap_PDF_matrix_e_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_matrix * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_matrix_e_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_e_get. Expected _PDF_matrix_p.");
return NULL;
}
}
_result = (float )PDF_matrix_e_get(_arg0);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_matrix_f_set(_swigobj,_swigval) (_swigobj->f = _swigval,_swigval)
static PyObject *_wrap_PDF_matrix_f_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_matrix * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_matrix_f_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_f_set. Expected _PDF_matrix_p.");
return NULL;
}
}
_result = (float )PDF_matrix_f_set(_arg0,_arg1);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_matrix_f_get(_swigobj) ((float ) _swigobj->f)
static PyObject *_wrap_PDF_matrix_f_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_matrix * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_matrix_f_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_f_get. Expected _PDF_matrix_p.");
return NULL;
}
}
_result = (float )PDF_matrix_f_get(_arg0);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_data_source_s_next_byte_set(_swigobj,_swigval) (_swigobj->next_byte = _swigval,_swigval)
static PyObject *_wrap_PDF_data_source_s_next_byte_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
byte * _result;
struct PDF_data_source_s * _arg0;
byte * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_data_source_s_next_byte_set",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_next_byte_set. Expected _struct_PDF_data_source_s_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_byte_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_data_source_s_next_byte_set. Expected _byte_p.");
return NULL;
}
}
_result = (byte *)PDF_data_source_s_next_byte_set(_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_byte_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define PDF_data_source_s_next_byte_get(_swigobj) ((byte *) _swigobj->next_byte)
static PyObject *_wrap_PDF_data_source_s_next_byte_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
byte * _result;
struct PDF_data_source_s * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_data_source_s_next_byte_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_next_byte_get. Expected _struct_PDF_data_source_s_p.");
return NULL;
}
}
_result = (byte *)PDF_data_source_s_next_byte_get(_arg0);
SWIG_MakePtr(_ptemp, (char *) _result,"_byte_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define PDF_data_source_s_bytes_available_set(_swigobj,_swigval) (_swigobj->bytes_available = *(_swigval),_swigval)
static PyObject *_wrap_PDF_data_source_s_bytes_available_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
size_t * _result;
struct PDF_data_source_s * _arg0;
size_t * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_data_source_s_bytes_available_set",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_bytes_available_set. Expected _struct_PDF_data_source_s_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_size_t_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_data_source_s_bytes_available_set. Expected _size_t_p.");
return NULL;
}
}
_result = (size_t *)PDF_data_source_s_bytes_available_set(_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_size_t_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define PDF_data_source_s_bytes_available_get(_swigobj) (&_swigobj->bytes_available)
static PyObject *_wrap_PDF_data_source_s_bytes_available_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
size_t * _result;
struct PDF_data_source_s * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_data_source_s_bytes_available_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_bytes_available_get. Expected _struct_PDF_data_source_s_p.");
return NULL;
}
}
_result = (size_t *)PDF_data_source_s_bytes_available_get(_arg0);
SWIG_MakePtr(_ptemp, (char *) _result,"_size_t_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define PDF_data_source_s_buffer_start_set(_swigobj,_swigval) (_swigobj->buffer_start = _swigval,_swigval)
static PyObject *_wrap_PDF_data_source_s_buffer_start_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
byte * _result;
struct PDF_data_source_s * _arg0;
byte * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_data_source_s_buffer_start_set",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_buffer_start_set. Expected _struct_PDF_data_source_s_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_byte_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_data_source_s_buffer_start_set. Expected _byte_p.");
return NULL;
}
}
_result = (byte *)PDF_data_source_s_buffer_start_set(_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_byte_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define PDF_data_source_s_buffer_start_get(_swigobj) ((byte *) _swigobj->buffer_start)
static PyObject *_wrap_PDF_data_source_s_buffer_start_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
byte * _result;
struct PDF_data_source_s * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_data_source_s_buffer_start_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_buffer_start_get. Expected _struct_PDF_data_source_s_p.");
return NULL;
}
}
_result = (byte *)PDF_data_source_s_buffer_start_get(_arg0);
SWIG_MakePtr(_ptemp, (char *) _result,"_byte_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define PDF_data_source_s_buffer_length_set(_swigobj,_swigval) (_swigobj->buffer_length = *(_swigval),_swigval)
static PyObject *_wrap_PDF_data_source_s_buffer_length_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
size_t * _result;
struct PDF_data_source_s * _arg0;
size_t * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_data_source_s_buffer_length_set",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_buffer_length_set. Expected _struct_PDF_data_source_s_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_size_t_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_data_source_s_buffer_length_set. Expected _size_t_p.");
return NULL;
}
}
_result = (size_t *)PDF_data_source_s_buffer_length_set(_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_size_t_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define PDF_data_source_s_buffer_length_get(_swigobj) (&_swigobj->buffer_length)
static PyObject *_wrap_PDF_data_source_s_buffer_length_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
size_t * _result;
struct PDF_data_source_s * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_data_source_s_buffer_length_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_buffer_length_get. Expected _struct_PDF_data_source_s_p.");
return NULL;
}
}
_result = (size_t *)PDF_data_source_s_buffer_length_get(_arg0);
SWIG_MakePtr(_ptemp, (char *) _result,"_size_t_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define PDF_data_source_s_private_data_set(_swigobj,_swigval) (_swigobj->private_data = _swigval,_swigval)
static PyObject *_wrap_PDF_data_source_s_private_data_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
byte * _result;
struct PDF_data_source_s * _arg0;
byte * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_data_source_s_private_data_set",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_private_data_set. Expected _struct_PDF_data_source_s_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_byte_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_data_source_s_private_data_set. Expected _byte_p.");
return NULL;
}
}
_result = (byte *)PDF_data_source_s_private_data_set(_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_byte_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define PDF_data_source_s_private_data_get(_swigobj) ((byte *) _swigobj->private_data)
static PyObject *_wrap_PDF_data_source_s_private_data_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
byte * _result;
struct PDF_data_source_s * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_data_source_s_private_data_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_private_data_get. Expected _struct_PDF_data_source_s_p.");
return NULL;
}
}
_result = (byte *)PDF_data_source_s_private_data_get(_arg0);
SWIG_MakePtr(_ptemp, (char *) _result,"_byte_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define PDF_image_t_fp_set(_swigobj,_swigval) (_swigobj->fp = _swigval,_swigval)
static PyObject *_wrap_PDF_image_fp_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
FILE * _result;
PDF_image * _arg0;
FILE * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_image_fp_set",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_fp_set. Expected _PDF_image_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_FILE_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_image_fp_set. Expected _FILE_p.");
return NULL;
}
}
_result = (FILE *)PDF_image_t_fp_set(_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_FILE_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define PDF_image_t_fp_get(_swigobj) ((FILE *) _swigobj->fp)
static PyObject *_wrap_PDF_image_fp_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
FILE * _result;
PDF_image * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_fp_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_fp_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (FILE *)PDF_image_t_fp_get(_arg0);
SWIG_MakePtr(_ptemp, (char *) _result,"_FILE_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
static char * PDF_image_t_filename_set(PDF_image *obj, char *val) {
if (obj->filename) free(obj->filename);
obj->filename = (char *) malloc(strlen(val)+1);
strcpy(obj->filename,val);
return val;
}
static PyObject *_wrap_PDF_image_filename_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_image * _arg0;
char * _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_image_filename_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_filename_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (char *)PDF_image_t_filename_set(_arg0,_arg1);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
#define PDF_image_t_filename_get(_swigobj) ((char *) _swigobj->filename)
static PyObject *_wrap_PDF_image_filename_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
char * _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_filename_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_filename_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (char *)PDF_image_t_filename_get(_arg0);
_resultobj = Py_BuildValue("s", _result);
return _resultobj;
}
#define PDF_image_t_width_set(_swigobj,_swigval) (_swigobj->width = _swigval,_swigval)
static PyObject *_wrap_PDF_image_width_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
unsigned int _result;
PDF_image * _arg0;
unsigned int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_width_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_width_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (unsigned int )PDF_image_t_width_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_width_get(_swigobj) ((unsigned int ) _swigobj->width)
static PyObject *_wrap_PDF_image_width_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
unsigned int _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_width_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_width_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (unsigned int )PDF_image_t_width_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_height_set(_swigobj,_swigval) (_swigobj->height = _swigval,_swigval)
static PyObject *_wrap_PDF_image_height_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
unsigned int _result;
PDF_image * _arg0;
unsigned int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_height_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_height_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (unsigned int )PDF_image_t_height_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_height_get(_swigobj) ((unsigned int ) _swigobj->height)
static PyObject *_wrap_PDF_image_height_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
unsigned int _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_height_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_height_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (unsigned int )PDF_image_t_height_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_bpc_set(_swigobj,_swigval) (_swigobj->bpc = _swigval,_swigval)
static PyObject *_wrap_PDF_image_bpc_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_bpc_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_bpc_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_bpc_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_bpc_get(_swigobj) ((int ) _swigobj->bpc)
static PyObject *_wrap_PDF_image_bpc_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_bpc_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_bpc_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_bpc_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_components_set(_swigobj,_swigval) (_swigobj->components = _swigval,_swigval)
static PyObject *_wrap_PDF_image_components_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
unsigned int _result;
PDF_image * _arg0;
unsigned int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_components_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_components_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (unsigned int )PDF_image_t_components_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_components_get(_swigobj) ((unsigned int ) _swigobj->components)
static PyObject *_wrap_PDF_image_components_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
unsigned int _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_components_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_components_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (unsigned int )PDF_image_t_components_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_compression_set(_swigobj,_swigval) (_swigobj->compression = _swigval,_swigval)
static PyObject *_wrap_PDF_image_compression_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF_compression _result;
PDF_image * _arg0;
PDF_compression _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_compression_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_compression_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (PDF_compression )PDF_image_t_compression_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_compression_get(_swigobj) ((PDF_compression ) _swigobj->compression)
static PyObject *_wrap_PDF_image_compression_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF_compression _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_compression_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_compression_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (PDF_compression )PDF_image_t_compression_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_colorspace_set(_swigobj,_swigval) (_swigobj->colorspace = _swigval,_swigval)
static PyObject *_wrap_PDF_image_colorspace_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF_colorspace _result;
PDF_image * _arg0;
PDF_colorspace _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_colorspace_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_colorspace_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (PDF_colorspace )PDF_image_t_colorspace_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_colorspace_get(_swigobj) ((PDF_colorspace ) _swigobj->colorspace)
static PyObject *_wrap_PDF_image_colorspace_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF_colorspace _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_colorspace_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_colorspace_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (PDF_colorspace )PDF_image_t_colorspace_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_indexed_set(_swigobj,_swigval) (_swigobj->indexed = _swigval,_swigval)
static PyObject *_wrap_PDF_image_indexed_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
bool _result;
PDF_image * _arg0;
bool _arg1;
char * _argc0 = 0;
int tempbool1;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_indexed_set",&_argc0,&tempbool1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_indexed_set. Expected _PDF_image_p.");
return NULL;
}
}
_arg1 = (bool ) tempbool1;
_result = (bool )PDF_image_t_indexed_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_indexed_get(_swigobj) ((bool ) _swigobj->indexed)
static PyObject *_wrap_PDF_image_indexed_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
bool _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_indexed_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_indexed_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (bool )PDF_image_t_indexed_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_BitPixel_set(_swigobj,_swigval) (_swigobj->BitPixel = _swigval,_swigval)
static PyObject *_wrap_PDF_image_BitPixel_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
unsigned int _result;
PDF_image * _arg0;
unsigned int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_BitPixel_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_BitPixel_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (unsigned int )PDF_image_t_BitPixel_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_BitPixel_get(_swigobj) ((unsigned int ) _swigobj->BitPixel)
static PyObject *_wrap_PDF_image_BitPixel_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
unsigned int _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_BitPixel_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_BitPixel_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (unsigned int )PDF_image_t_BitPixel_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_colormap_get(_swigobj) ((byte *) _swigobj->colormap)
static PyObject *_wrap_PDF_image_colormap_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
byte * _result;
PDF_image * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_colormap_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_colormap_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (byte *)PDF_image_t_colormap_get(_arg0);
SWIG_MakePtr(_ptemp, (char *) _result,"_pdf_colormap");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define PDF_image_t_adobe_set(_swigobj,_swigval) (_swigobj->adobe = _swigval,_swigval)
static PyObject *_wrap_PDF_image_adobe_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
bool _result;
PDF_image * _arg0;
bool _arg1;
char * _argc0 = 0;
int tempbool1;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_adobe_set",&_argc0,&tempbool1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_adobe_set. Expected _PDF_image_p.");
return NULL;
}
}
_arg1 = (bool ) tempbool1;
_result = (bool )PDF_image_t_adobe_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_adobe_get(_swigobj) ((bool ) _swigobj->adobe)
static PyObject *_wrap_PDF_image_adobe_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
bool _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_adobe_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_adobe_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (bool )PDF_image_t_adobe_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_startpos_set(_swigobj,_swigval) (_swigobj->startpos = _swigval,_swigval)
static PyObject *_wrap_PDF_image_startpos_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
long _result;
PDF_image * _arg0;
long _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sl:PDF_image_startpos_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_startpos_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (long )PDF_image_t_startpos_set(_arg0,_arg1);
_resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
#define PDF_image_t_startpos_get(_swigobj) ((long ) _swigobj->startpos)
static PyObject *_wrap_PDF_image_startpos_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
long _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_startpos_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_startpos_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (long )PDF_image_t_startpos_get(_arg0);
_resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
#define PDF_image_t_dpi_set(_swigobj,_swigval) (_swigobj->dpi = _swigval,_swigval)
static PyObject *_wrap_PDF_image_dpi_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_image * _arg0;
float _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sf:PDF_image_dpi_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_dpi_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (float )PDF_image_t_dpi_set(_arg0,_arg1);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_image_t_dpi_get(_swigobj) ((float ) _swigobj->dpi)
static PyObject *_wrap_PDF_image_dpi_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
float _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_dpi_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_dpi_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (float )PDF_image_t_dpi_get(_arg0);
_resultobj = Py_BuildValue("f",_result);
return _resultobj;
}
#define PDF_image_t_Background_set(_swigobj,_swigval) (_swigobj->Background = _swigval,_swigval)
static PyObject *_wrap_PDF_image_Background_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
unsigned int _result;
PDF_image * _arg0;
unsigned int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_Background_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_Background_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (unsigned int )PDF_image_t_Background_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_Background_get(_swigobj) ((unsigned int ) _swigobj->Background)
static PyObject *_wrap_PDF_image_Background_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
unsigned int _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_Background_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_Background_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (unsigned int )PDF_image_t_Background_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_transparent_set(_swigobj,_swigval) (_swigobj->transparent = _swigval,_swigval)
static PyObject *_wrap_PDF_image_transparent_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_transparent_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_transparent_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_transparent_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_transparent_get(_swigobj) ((int ) _swigobj->transparent)
static PyObject *_wrap_PDF_image_transparent_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_transparent_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_transparent_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_transparent_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_delayTime_set(_swigobj,_swigval) (_swigobj->delayTime = _swigval,_swigval)
static PyObject *_wrap_PDF_image_delayTime_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_delayTime_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_delayTime_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_delayTime_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_delayTime_get(_swigobj) ((int ) _swigobj->delayTime)
static PyObject *_wrap_PDF_image_delayTime_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_delayTime_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_delayTime_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_delayTime_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_inputFlag_set(_swigobj,_swigval) (_swigobj->inputFlag = _swigval,_swigval)
static PyObject *_wrap_PDF_image_inputFlag_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_inputFlag_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_inputFlag_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_inputFlag_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_inputFlag_get(_swigobj) ((int ) _swigobj->inputFlag)
static PyObject *_wrap_PDF_image_inputFlag_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_inputFlag_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_inputFlag_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_inputFlag_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_disposal_set(_swigobj,_swigval) (_swigobj->disposal = _swigval,_swigval)
static PyObject *_wrap_PDF_image_disposal_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_disposal_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_disposal_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_disposal_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_disposal_get(_swigobj) ((int ) _swigobj->disposal)
static PyObject *_wrap_PDF_image_disposal_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_disposal_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_disposal_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_disposal_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_useGlobalColormap_set(_swigobj,_swigval) (_swigobj->useGlobalColormap = _swigval,_swigval)
static PyObject *_wrap_PDF_image_useGlobalColormap_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_useGlobalColormap_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_useGlobalColormap_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_useGlobalColormap_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_useGlobalColormap_get(_swigobj) ((int ) _swigobj->useGlobalColormap)
static PyObject *_wrap_PDF_image_useGlobalColormap_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_useGlobalColormap_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_useGlobalColormap_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_useGlobalColormap_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_bitPixel_set(_swigobj,_swigval) (_swigobj->bitPixel = _swigval,_swigval)
static PyObject *_wrap_PDF_image_bitPixel_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
unsigned int _result;
PDF_image * _arg0;
unsigned int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_bitPixel_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_bitPixel_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (unsigned int )PDF_image_t_bitPixel_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_bitPixel_get(_swigobj) ((unsigned int ) _swigobj->bitPixel)
static PyObject *_wrap_PDF_image_bitPixel_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
unsigned int _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_bitPixel_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_bitPixel_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (unsigned int )PDF_image_t_bitPixel_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_interlace_set(_swigobj,_swigval) (_swigobj->interlace = _swigval,_swigval)
static PyObject *_wrap_PDF_image_interlace_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
bool _result;
PDF_image * _arg0;
bool _arg1;
char * _argc0 = 0;
int tempbool1;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_interlace_set",&_argc0,&tempbool1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_interlace_set. Expected _PDF_image_p.");
return NULL;
}
}
_arg1 = (bool ) tempbool1;
_result = (bool )PDF_image_t_interlace_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_interlace_get(_swigobj) ((bool ) _swigobj->interlace)
static PyObject *_wrap_PDF_image_interlace_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
bool _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_interlace_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_interlace_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (bool )PDF_image_t_interlace_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_imageno_set(_swigobj,_swigval) (_swigobj->imageno = _swigval,_swigval)
static PyObject *_wrap_PDF_image_imageno_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_imageno_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_imageno_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_imageno_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_imageno_get(_swigobj) ((int ) _swigobj->imageno)
static PyObject *_wrap_PDF_image_imageno_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_imageno_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_imageno_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_imageno_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_no_set(_swigobj,_swigval) (_swigobj->no = _swigval,_swigval)
static PyObject *_wrap_PDF_image_no_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PDF_image_no_set",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_no_set. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_no_set(_arg0,_arg1);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_no_get(_swigobj) ((int ) _swigobj->no)
static PyObject *_wrap_PDF_image_no_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PDF_image * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_no_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_no_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (int )PDF_image_t_no_get(_arg0);
_resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PDF_image_t_src_set(_swigobj,_swigval) (_swigobj->src = *(_swigval),_swigval)
static PyObject *_wrap_PDF_image_src_set(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF_data_source * _result;
PDF_image * _arg0;
PDF_data_source * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"ss:PDF_image_src_set",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_src_set. Expected _PDF_image_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_data_source_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_image_src_set. Expected _PDF_data_source_p.");
return NULL;
}
}
_result = (PDF_data_source *)PDF_image_t_src_set(_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_data_source_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define PDF_image_t_src_get(_swigobj) (&_swigobj->src)
static PyObject *_wrap_PDF_image_src_get(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PDF_data_source * _result;
PDF_image * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:PDF_image_src_get",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_src_get. Expected _PDF_image_p.");
return NULL;
}
}
_result = (PDF_data_source *)PDF_image_t_src_get(_arg0);
SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_data_source_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
static PyMethodDef pdflibMethods[] = {
{ "PDF_image_src_get", _wrap_PDF_image_src_get, 1 },
{ "PDF_image_src_set", _wrap_PDF_image_src_set, 1 },
{ "PDF_image_no_get", _wrap_PDF_image_no_get, 1 },
{ "PDF_image_no_set", _wrap_PDF_image_no_set, 1 },
{ "PDF_image_imageno_get", _wrap_PDF_image_imageno_get, 1 },
{ "PDF_image_imageno_set", _wrap_PDF_image_imageno_set, 1 },
{ "PDF_image_interlace_get", _wrap_PDF_image_interlace_get, 1 },
{ "PDF_image_interlace_set", _wrap_PDF_image_interlace_set, 1 },
{ "PDF_image_bitPixel_get", _wrap_PDF_image_bitPixel_get, 1 },
{ "PDF_image_bitPixel_set", _wrap_PDF_image_bitPixel_set, 1 },
{ "PDF_image_useGlobalColormap_get", _wrap_PDF_image_useGlobalColormap_get, 1 },
{ "PDF_image_useGlobalColormap_set", _wrap_PDF_image_useGlobalColormap_set, 1 },
{ "PDF_image_disposal_get", _wrap_PDF_image_disposal_get, 1 },
{ "PDF_image_disposal_set", _wrap_PDF_image_disposal_set, 1 },
{ "PDF_image_inputFlag_get", _wrap_PDF_image_inputFlag_get, 1 },
{ "PDF_image_inputFlag_set", _wrap_PDF_image_inputFlag_set, 1 },
{ "PDF_image_delayTime_get", _wrap_PDF_image_delayTime_get, 1 },
{ "PDF_image_delayTime_set", _wrap_PDF_image_delayTime_set, 1 },
{ "PDF_image_transparent_get", _wrap_PDF_image_transparent_get, 1 },
{ "PDF_image_transparent_set", _wrap_PDF_image_transparent_set, 1 },
{ "PDF_image_Background_get", _wrap_PDF_image_Background_get, 1 },
{ "PDF_image_Background_set", _wrap_PDF_image_Background_set, 1 },
{ "PDF_image_dpi_get", _wrap_PDF_image_dpi_get, 1 },
{ "PDF_image_dpi_set", _wrap_PDF_image_dpi_set, 1 },
{ "PDF_image_startpos_get", _wrap_PDF_image_startpos_get, 1 },
{ "PDF_image_startpos_set", _wrap_PDF_image_startpos_set, 1 },
{ "PDF_image_adobe_get", _wrap_PDF_image_adobe_get, 1 },
{ "PDF_image_adobe_set", _wrap_PDF_image_adobe_set, 1 },
{ "PDF_image_colormap_get", _wrap_PDF_image_colormap_get, 1 },
{ "PDF_image_BitPixel_get", _wrap_PDF_image_BitPixel_get, 1 },
{ "PDF_image_BitPixel_set", _wrap_PDF_image_BitPixel_set, 1 },
{ "PDF_image_indexed_get", _wrap_PDF_image_indexed_get, 1 },
{ "PDF_image_indexed_set", _wrap_PDF_image_indexed_set, 1 },
{ "PDF_image_colorspace_get", _wrap_PDF_image_colorspace_get, 1 },
{ "PDF_image_colorspace_set", _wrap_PDF_image_colorspace_set, 1 },
{ "PDF_image_compression_get", _wrap_PDF_image_compression_get, 1 },
{ "PDF_image_compression_set", _wrap_PDF_image_compression_set, 1 },
{ "PDF_image_components_get", _wrap_PDF_image_components_get, 1 },
{ "PDF_image_components_set", _wrap_PDF_image_components_set, 1 },
{ "PDF_image_bpc_get", _wrap_PDF_image_bpc_get, 1 },
{ "PDF_image_bpc_set", _wrap_PDF_image_bpc_set, 1 },
{ "PDF_image_height_get", _wrap_PDF_image_height_get, 1 },
{ "PDF_image_height_set", _wrap_PDF_image_height_set, 1 },
{ "PDF_image_width_get", _wrap_PDF_image_width_get, 1 },
{ "PDF_image_width_set", _wrap_PDF_image_width_set, 1 },
{ "PDF_image_filename_get", _wrap_PDF_image_filename_get, 1 },
{ "PDF_image_filename_set", _wrap_PDF_image_filename_set, 1 },
{ "PDF_image_fp_get", _wrap_PDF_image_fp_get, 1 },
{ "PDF_image_fp_set", _wrap_PDF_image_fp_set, 1 },
{ "PDF_data_source_s_private_data_get", _wrap_PDF_data_source_s_private_data_get, 1 },
{ "PDF_data_source_s_private_data_set", _wrap_PDF_data_source_s_private_data_set, 1 },
{ "PDF_data_source_s_buffer_length_get", _wrap_PDF_data_source_s_buffer_length_get, 1 },
{ "PDF_data_source_s_buffer_length_set", _wrap_PDF_data_source_s_buffer_length_set, 1 },
{ "PDF_data_source_s_buffer_start_get", _wrap_PDF_data_source_s_buffer_start_get, 1 },
{ "PDF_data_source_s_buffer_start_set", _wrap_PDF_data_source_s_buffer_start_set, 1 },
{ "PDF_data_source_s_bytes_available_get", _wrap_PDF_data_source_s_bytes_available_get, 1 },
{ "PDF_data_source_s_bytes_available_set", _wrap_PDF_data_source_s_bytes_available_set, 1 },
{ "PDF_data_source_s_next_byte_get", _wrap_PDF_data_source_s_next_byte_get, 1 },
{ "PDF_data_source_s_next_byte_set", _wrap_PDF_data_source_s_next_byte_set, 1 },
{ "PDF_matrix_f_get", _wrap_PDF_matrix_f_get, 1 },
{ "PDF_matrix_f_set", _wrap_PDF_matrix_f_set, 1 },
{ "PDF_matrix_e_get", _wrap_PDF_matrix_e_get, 1 },
{ "PDF_matrix_e_set", _wrap_PDF_matrix_e_set, 1 },
{ "PDF_matrix_d_get", _wrap_PDF_matrix_d_get, 1 },
{ "PDF_matrix_d_set", _wrap_PDF_matrix_d_set, 1 },
{ "PDF_matrix_c_get", _wrap_PDF_matrix_c_get, 1 },
{ "PDF_matrix_c_set", _wrap_PDF_matrix_c_set, 1 },
{ "PDF_matrix_b_get", _wrap_PDF_matrix_b_get, 1 },
{ "PDF_matrix_b_set", _wrap_PDF_matrix_b_set, 1 },
{ "PDF_matrix_a_get", _wrap_PDF_matrix_a_get, 1 },
{ "PDF_matrix_a_set", _wrap_PDF_matrix_a_set, 1 },
{ "PDF_info_fontpath_get", _wrap_PDF_info_fontpath_get, 1 },
{ "PDF_info_fontpath_set", _wrap_PDF_info_fontpath_set, 1 },
{ "PDF_info_Author_get", _wrap_PDF_info_Author_get, 1 },
{ "PDF_info_Author_set", _wrap_PDF_info_Author_set, 1 },
{ "PDF_info_Creator_get", _wrap_PDF_info_Creator_get, 1 },
{ "PDF_info_Creator_set", _wrap_PDF_info_Creator_set, 1 },
{ "PDF_info_CreationDate_get", _wrap_PDF_info_CreationDate_get, 1 },
{ "PDF_info_CreationDate_set", _wrap_PDF_info_CreationDate_set, 1 },
{ "PDF_info_Title_get", _wrap_PDF_info_Title_get, 1 },
{ "PDF_info_Title_set", _wrap_PDF_info_Title_set, 1 },
{ "PDF_info_ModDate_get", _wrap_PDF_info_ModDate_get, 1 },
{ "PDF_info_ModDate_set", _wrap_PDF_info_ModDate_set, 1 },
{ "PDF_info_Subject_get", _wrap_PDF_info_Subject_get, 1 },
{ "PDF_info_Subject_set", _wrap_PDF_info_Subject_set, 1 },
{ "PDF_info_Keywords_get", _wrap_PDF_info_Keywords_get, 1 },
{ "PDF_info_Keywords_set", _wrap_PDF_info_Keywords_set, 1 },
{ "PDF_info_required_compatibility_get", _wrap_PDF_info_required_compatibility_get, 1 },
{ "PDF_info_required_compatibility_set", _wrap_PDF_info_required_compatibility_set, 1 },
{ "PDF_info_binary_mode_get", _wrap_PDF_info_binary_mode_get, 1 },
{ "PDF_info_binary_mode_set", _wrap_PDF_info_binary_mode_set, 1 },
{ "PDF_pagesize_height_get", _wrap_PDF_pagesize_height_get, 1 },
{ "PDF_pagesize_height_set", _wrap_PDF_pagesize_height_set, 1 },
{ "PDF_pagesize_width_get", _wrap_PDF_pagesize_width_get, 1 },
{ "PDF_pagesize_width_set", _wrap_PDF_pagesize_width_set, 1 },
{ "fclose", _wrap_fclose, 1 },
{ "fopen", _wrap_fopen, 1 },
{ "PDF_add_outline", _wrap_PDF_add_outline, 1 },
{ "PDF_stringwidth", _wrap_PDF_stringwidth, 1 },
{ "PDF_data_source_from_buf", _wrap_PDF_data_source_from_buf, 1 },
{ "PDF_close_GIF", _wrap_PDF_close_GIF, 1 },
{ "PDF_open_GIF", _wrap_PDF_open_GIF, 1 },
{ "PDF_close_TIFF", _wrap_PDF_close_TIFF, 1 },
{ "PDF_open_TIFF", _wrap_PDF_open_TIFF, 1 },
{ "PDF_close_JPEG", _wrap_PDF_close_JPEG, 1 },
{ "PDF_open_JPEG", _wrap_PDF_open_JPEG, 1 },
{ "PDF_close_image", _wrap_PDF_close_image, 1 },
{ "PDF_execute_image", _wrap_PDF_execute_image, 1 },
{ "PDF_put_image", _wrap_PDF_put_image, 1 },
{ "PDF_place_inline_image", _wrap_PDF_place_inline_image, 1 },
{ "PDF_place_image", _wrap_PDF_place_image, 1 },
{ "PDF_clip", _wrap_PDF_clip, 1 },
{ "PDF_endpath", _wrap_PDF_endpath, 1 },
{ "PDF_closepath_fill_stroke", _wrap_PDF_closepath_fill_stroke, 1 },
{ "PDF_fill_stroke", _wrap_PDF_fill_stroke, 1 },
{ "PDF_fill", _wrap_PDF_fill, 1 },
{ "PDF_closepath_stroke", _wrap_PDF_closepath_stroke, 1 },
{ "PDF_stroke", _wrap_PDF_stroke, 1 },
{ "PDF_closepath", _wrap_PDF_closepath, 1 },
{ "PDF_rect", _wrap_PDF_rect, 1 },
{ "PDF_arc", _wrap_PDF_arc, 1 },
{ "PDF_circle", _wrap_PDF_circle, 1 },
{ "PDF_curveto", _wrap_PDF_curveto, 1 },
{ "PDF_lineto", _wrap_PDF_lineto, 1 },
{ "PDF_moveto", _wrap_PDF_moveto, 1 },
{ "PDF_setrgbcolor", _wrap_PDF_setrgbcolor, 1 },
{ "PDF_setrgbcolor_stroke", _wrap_PDF_setrgbcolor_stroke, 1 },
{ "PDF_setrgbcolor_fill", _wrap_PDF_setrgbcolor_fill, 1 },
{ "PDF_setgray", _wrap_PDF_setgray, 1 },
{ "PDF_setgray_stroke", _wrap_PDF_setgray_stroke, 1 },
{ "PDF_setgray_fill", _wrap_PDF_setgray_fill, 1 },
{ "PDF_setlinewidth", _wrap_PDF_setlinewidth, 1 },
{ "PDF_setmiterlimit", _wrap_PDF_setmiterlimit, 1 },
{ "PDF_setlinecap", _wrap_PDF_setlinecap, 1 },
{ "PDF_setlinejoin", _wrap_PDF_setlinejoin, 1 },
{ "PDF_setflat", _wrap_PDF_setflat, 1 },
{ "PDF_setpolydash", _wrap_PDF_setpolydash, 1 },
{ "PDF_setdash", _wrap_PDF_setdash, 1 },
{ "PDF_rotate", _wrap_PDF_rotate, 1 },
{ "PDF_scale", _wrap_PDF_scale, 1 },
{ "PDF_translate", _wrap_PDF_translate, 1 },
{ "PDF_restore", _wrap_PDF_restore, 1 },
{ "PDF_save", _wrap_PDF_save, 1 },
{ "PDF_continue_text", _wrap_PDF_continue_text, 1 },
{ "PDF_set_word_spacing", _wrap_PDF_set_word_spacing, 1 },
{ "PDF_set_char_spacing", _wrap_PDF_set_char_spacing, 1 },
{ "PDF_set_text_pos", _wrap_PDF_set_text_pos, 1 },
{ "PDF_set_text_matrix", _wrap_PDF_set_text_matrix, 1 },
{ "PDF_set_text_rendering", _wrap_PDF_set_text_rendering, 1 },
{ "PDF_set_horiz_scaling", _wrap_PDF_set_horiz_scaling, 1 },
{ "PDF_set_text_rise", _wrap_PDF_set_text_rise, 1 },
{ "PDF_set_leading", _wrap_PDF_set_leading, 1 },
{ "PDF_set_font", _wrap_PDF_set_font, 1 },
{ "PDF_show_xy", _wrap_PDF_show_xy, 1 },
{ "PDF_show", _wrap_PDF_show, 1 },
{ "PDF_free", _wrap_PDF_free, 1 },
{ "PDF_malloc", _wrap_PDF_malloc, 1 },
{ "PDF_set_duration", _wrap_PDF_set_duration, 1 },
{ "PDF_set_transition", _wrap_PDF_set_transition, 1 },
{ "PDF_end_page", _wrap_PDF_end_page, 1 },
{ "PDF_begin_page", _wrap_PDF_begin_page, 1 },
{ "PDF_close", _wrap_PDF_close, 1 },
{ "PDF_open", _wrap_PDF_open, 1 },
{ "PDF_get_info", _wrap_PDF_get_info, 1 },
{ NULL, NULL }
};
static PyObject *SWIG_globals;
#ifdef __cplusplus
extern "C"
#endif
SWIGEXPORT(void,initpdflib)() {
PyObject *m, *d;
SWIG_globals = SWIG_newvarlink();
m = Py_InitModule("pdflib", pdflibMethods);
d = PyModule_GetDict(m);
PyDict_SetItemString(d,"PDFLIB_VERSION", PyString_FromString("PDFlib V0.6 (C) Thomas Merz 1997-98"));
PyDict_SetItemString(d,"PDF_DEFAULT_FONT_PATH", PyString_FromString("./fonts"));
PyDict_SetItemString(d,"false", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"true", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"PDF_INFO", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"PDF_WARN", PyInt_FromLong((long) 2));
PyDict_SetItemString(d,"PDF_FATAL", PyInt_FromLong((long) 3));
PyDict_SetItemString(d,"PDF_INTERNAL", PyInt_FromLong((long) 4));
PyDict_SetItemString(d,"PDF1_0", PyInt_FromLong((long) PDF1_0));
PyDict_SetItemString(d,"PDF1_1", PyInt_FromLong((long) PDF1_1));
PyDict_SetItemString(d,"PDF1_2", PyInt_FromLong((long) PDF1_2));
PyDict_SetItemString(d,"builtin", PyInt_FromLong((long) builtin));
PyDict_SetItemString(d,"pdfdoc", PyInt_FromLong((long) pdfdoc));
PyDict_SetItemString(d,"macroman", PyInt_FromLong((long) macroman));
PyDict_SetItemString(d,"macexpert", PyInt_FromLong((long) macexpert));
PyDict_SetItemString(d,"winansi", PyInt_FromLong((long) winansi));
PyDict_SetItemString(d,"encoding_count", PyInt_FromLong((long) encoding_count));
PyDict_SetItemString(d,"none", PyInt_FromLong((long) none));
PyDict_SetItemString(d,"lzw", PyInt_FromLong((long) lzw));
PyDict_SetItemString(d,"runlength", PyInt_FromLong((long) runlength));
PyDict_SetItemString(d,"ccitt", PyInt_FromLong((long) ccitt));
PyDict_SetItemString(d,"dct", PyInt_FromLong((long) dct));
PyDict_SetItemString(d,"flate", PyInt_FromLong((long) flate));
PyDict_SetItemString(d,"compression_count", PyInt_FromLong((long) compression_count));
PyDict_SetItemString(d,"trans_none", PyInt_FromLong((long) trans_none));
PyDict_SetItemString(d,"trans_split", PyInt_FromLong((long) trans_split));
PyDict_SetItemString(d,"trans_blinds", PyInt_FromLong((long) trans_blinds));
PyDict_SetItemString(d,"trans_box", PyInt_FromLong((long) trans_box));
PyDict_SetItemString(d,"trans_wipe", PyInt_FromLong((long) trans_wipe));
PyDict_SetItemString(d,"trans_dissolve", PyInt_FromLong((long) trans_dissolve));
PyDict_SetItemString(d,"trans_glitter", PyInt_FromLong((long) trans_glitter));
PyDict_SetItemString(d,"trans_replace", PyInt_FromLong((long) trans_replace));
PyDict_SetItemString(d,"transition_count", PyInt_FromLong((long) transition_count));
PyDict_SetItemString(d,"DeviceGray", PyInt_FromLong((long) DeviceGray));
PyDict_SetItemString(d,"DeviceRGB", PyInt_FromLong((long) DeviceRGB));
PyDict_SetItemString(d,"DeviceCMYK", PyInt_FromLong((long) DeviceCMYK));
PyDict_SetItemString(d,"CalGray", PyInt_FromLong((long) CalGray));
PyDict_SetItemString(d,"CalRGB", PyInt_FromLong((long) CalRGB));
PyDict_SetItemString(d,"Lab", PyInt_FromLong((long) Lab));
PyDict_SetItemString(d,"Indexed", PyInt_FromLong((long) Indexed));
PyDict_SetItemString(d,"Pattern", PyInt_FromLong((long) Pattern));
PyDict_SetItemString(d,"Separation", PyInt_FromLong((long) Separation));
PyDict_SetItemString(d,"colorspace_count", PyInt_FromLong((long) colorspace_count));
PyDict_SetItemString(d,"cvar", SWIG_globals);
SWIG_addvarlink(SWIG_globals,"a0",_wrap_a0_get, _wrap_a0_set);
SWIG_addvarlink(SWIG_globals,"a1",_wrap_a1_get, _wrap_a1_set);
SWIG_addvarlink(SWIG_globals,"a2",_wrap_a2_get, _wrap_a2_set);
SWIG_addvarlink(SWIG_globals,"a3",_wrap_a3_get, _wrap_a3_set);
SWIG_addvarlink(SWIG_globals,"a4",_wrap_a4_get, _wrap_a4_set);
SWIG_addvarlink(SWIG_globals,"a5",_wrap_a5_get, _wrap_a5_set);
SWIG_addvarlink(SWIG_globals,"a6",_wrap_a6_get, _wrap_a6_set);
SWIG_addvarlink(SWIG_globals,"b5",_wrap_b5_get, _wrap_b5_set);
SWIG_addvarlink(SWIG_globals,"letter",_wrap_letter_get, _wrap_letter_set);
SWIG_addvarlink(SWIG_globals,"legal",_wrap_legal_get, _wrap_legal_set);
SWIG_addvarlink(SWIG_globals,"ledger",_wrap_ledger_get, _wrap_ledger_set);
SWIG_addvarlink(SWIG_globals,"p11x17",_wrap_p11x17_get, _wrap_p11x17_set);
PyDict_SetItemString(d,"PDF_info_Producer", PyString_FromString("PDF_info::Producer"));
/*
* These are the pointer type-equivalency mappings.
* (Used by the SWIG pointer type-checker).
*/
SWIG_RegisterMapping("_signed_long","_long",0);
SWIG_RegisterMapping("_struct_PDF_s","_PDF",0);
SWIG_RegisterMapping("_struct_PDF_data_source_s","_PDF_data_source_s",0);
SWIG_RegisterMapping("_struct_PDF_data_source_s","_PDF_data_source",0);
SWIG_RegisterMapping("_byte","_unsigned_char",0);
SWIG_RegisterMapping("_char_pp","_PDF_encodingvector",0);
SWIG_RegisterMapping("_long","_unsigned_long",0);
SWIG_RegisterMapping("_long","_signed_long",0);
SWIG_RegisterMapping("_PDF","_struct_PDF_s",0);
SWIG_RegisterMapping("_struct_PDF_image_t","_PDF_image",0);
SWIG_RegisterMapping("_struct_PDF_image_t","_PDF_image_t",0);
SWIG_RegisterMapping("_PDF_data_source","_struct_PDF_data_source_s",0);
SWIG_RegisterMapping("_PDF_image","_struct_PDF_image_t",0);
SWIG_RegisterMapping("_PDF_image","_PDF_image_t",0);
SWIG_RegisterMapping("_unsigned_long","_long",0);
SWIG_RegisterMapping("_pdf_colormap","_byte_p",0);
SWIG_RegisterMapping("_PDF_encodingvector","_char_pp",0);
SWIG_RegisterMapping("_signed_int","_int",0);
SWIG_RegisterMapping("_unsigned_short","_short",0);
SWIG_RegisterMapping("_signed_short","_short",0);
SWIG_RegisterMapping("_unsigned_char","_byte",0);
SWIG_RegisterMapping("_unsigned_int","_int",0);
SWIG_RegisterMapping("_short","_unsigned_short",0);
SWIG_RegisterMapping("_short","_signed_short",0);
SWIG_RegisterMapping("_int","_unsigned_int",0);
SWIG_RegisterMapping("_int","_signed_int",0);
SWIG_RegisterMapping("_PDF_data_source_s","_struct_PDF_data_source_s",0);
SWIG_RegisterMapping("_PDF_image_t","_PDF_image",0);
SWIG_RegisterMapping("_PDF_image_t","_struct_PDF_image_t",0);
SWIG_RegisterMapping("_byte_p","_pdf_colormap",0);
}